package com.smiier.skin.net;

import java.util.ArrayList;

import android.content.Context;
import cn.o.app.io.INoProguard;
import cn.o.app.net.NetTask;

import com.smiier.skin.constant.Constant;
import com.smiier.skin.net.QuestionGetListTask.QuestionGetListRequest;
import com.smiier.skin.net.QuestionGetListTask.QuestionGetListResponse;
import com.smiier.skin.net.entity.QuestionAnswer;
import com.smiier.skin.util.GlobalSettings;

/**
 * 获取问题列表
 * 
 * @author 杨文华
 * 
 */
public class QuestionGetListTask extends
		NetTask<QuestionGetListRequest, QuestionGetListResponse> {

	public static class QuestionGetListRequest extends ORequest {
		public Integer pageSize;
		public String token;
		public ArrayList<Integer> statuses;
		public Long startQid;
		public Integer pageIndex;
		public ArrayList<Integer> ageRanges;
		public ArrayList<Integer> sex;
		public String Sort;
		public ArrayList<String> Symptoms;
		public Integer is_user_del;
		public String sort;
		public Integer is_user_del_question;
		public Long doctor_uid;
		public Long uid;
		public Integer Is_Appraise;
		public Integer Is_Cost;
		public String keyWord;
		public String appname = Constant.APP_NAME;
	}

	public static class QuestionGetListResponse extends OResponse {
		public QuestionList Res;
	}

	public static class QuestionList implements INoProguard {
		public int Count;
		public ArrayList<QuestionAnswer> Questions;
	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL + GlobalSettings.SERVER_URL_JOIN
				+ "?api=Question.GetList";
		mRequestMethod = METHOD_GET;
	}

}
